package org.lvgo;

import org.lvgo.observer.BinaryObserver;
import org.lvgo.observer.HexObserver;
import org.lvgo.observer.OctalObserver;
import org.lvgo.observer.Subject;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) {
        Subject subject = new Subject();
        
        new BinaryObserver(subject);
        new OctalObserver(subject);
        new HexObserver(subject);

        System.out.println("修改subject state值为10");
        subject.setState(10);
    }
}
